<?php

class Application_Model_DbTable_Pricelist extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_price_list';
	
    public function addNew($data){
    	$data['time']=new Zend_Db_Expr('now()');
    	$this->insert($data);
    }
    
    public function getPriceListByNumiid($numiid){
        $res=$this->fetchAll("numiid='".$numiid."'","time desc");
        return $res->toArray();
    }

}

